<!--
 * @Author: AHANG
 * @Date: 2022-07-07 14:58:19
 * @LastEditors: AHANG
 * @LastEditTime: 2022-07-15 16:07:30
 * @Description: 
-->
<template>
  <div id="Home">
    <el-row class="header-row">
      <h2>welcome</h2>
    </el-row>
    <el-row class="tac">
      <el-col :span="3" class="col-left">
        <el-menu default-active="2" class="el-menu-vertical-demo">
          <!-- @open="handleOpen" -->
          <!-- @close="handleClose" -->
          <router-link active-class="active" class="tabs" to="/Home/Maps">
            <el-menu-item index="1">
              <i class="el-icon-location"></i>
              <span slot="title"> Map </span>
            </el-menu-item>
          </router-link>
          <router-link active-class="active" class="tabs" to="/Home/Info">
            <el-menu-item index="2">
              <i class="el-icon-menu"></i>
              <span slot="title"> Info </span>
            </el-menu-item>
          </router-link>
        </el-menu>
      </el-col>
      <el-col :span="21" class="col-right">
        <router-view name="Maps"></router-view>
        <router-view name="Info"></router-view>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  // eslint-disable-next-line vue/multi-word-component-names
  name: "Home",
  data() {
    return {};
  },
  components: {},
  methods: {},
};
</script>

<style scoped>
* {
  padding: 0;
  margin: 0;
}
.Home{
  height: 100vh;
}
.tac {
  height: 100%;
}
.tabs {
  text-decoration: none;
}
.col-left {
  height: 93vh;
  border-right: #e6e6e6 1px solid;
}

.header-row {
  display: flex;
  align-content: center;
  justify-content: center;
  height: 7vh;
  line-height: 7vh;
  background: #999;
  font-size: 1.5rem;
}
.el-menu {
  border-right: none;
}
</style>
